﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class M1Rotate : MonoBehaviour {
    public float speed;
	// Use this for initialization
	void Start () {
        speed = 1000f;	
	}
	
	// Update is called once per frame
	void Update () {
        if (Global.RunStatus==1)
        {
           this.transform.Rotate(new Vector3(0, 0, 1f * Time.deltaTime * speed));
           // Debug.Log("转了");
        }else if (Global.RunStatus == 2)
        {
            this.transform.Rotate(new Vector3(0, 0, -1f * Time.deltaTime * speed));
        }
	}
}
